package com.premjit.examples.classStructure;

import com.premjit.logger.Logger;

public class DerivedCircle extends BaseClass{
	int radius;
	double perimeter;
	
	public DerivedCircle(int r){
		super();
		this.radius = r;
	}
	
	//overriding method
	public void calculatePerimeter(){
		Logger.debug("In DerivedCircle.calculatePerimeter()");
		perimeter = 2 * pie * radius;
	}
	
	public int getRadius(){
		return radius;
	}
	
	public double getPerimeter(){
		return perimeter;
	}

}
